<template>
    <div>
      <h2>支付成功</h2>
      <button @click="toPetshop">回到商城</button>
      <button @click="toOrder">查看订单</button>
      <button @click="toIndex">返回首页</button>
    </div>
  </template>
  
  <script setup>
  import { useRouter } from 'vue-router'
  
  
  const router = useRouter();
  
  const toPetshop = () => {
      router.push('/petshop');
  }
  
  const toIndex = () => {
      router.push('/');
  }
  
  const toOrder = () => {
      router.push('/order');
  }
  </script>
  
  <style>
  
  </style>